package com.gopay.common.domain.dic;

import com.gopay.common.domain.BaseEntity;
import javax.persistence.*;
import java.util.Date;

/**
 * 风控额度管理资金流向字典表
 * @DicRclDirection.java
 * @author zhuliang
 * @2017年5月16日 上午10:42:48  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "DIC_RCL_DIRECTION")
public class DicRclDirection extends BaseEntity{


    private static final long serialVersionUID = 1377817998711079082L;

	/**
	 * 主键
	 */
	@Id
	@SequenceGenerator(name = "DIC_RCL_DIRECTION_SEQ_GENERATOR", sequenceName = "DIC_RCL_DIRECTION_SEQ", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "DIC_RCL_DIRECTION_SEQ_GENERATOR")
	@Column(name = "ID")
	private Long id;

	/**
	 * 账户产品类型
	 */
	@Column(name = "ACCT_PROD", nullable = false, length = 30)
	private String acctProd;

	/**

	 * 客户类型
	 */
	@Column(name = "CUST_TYPE", nullable = false, length = 2)
	private String custType;

    /**
     * 国付宝内部交易码
     */
	@Column(name = "INT_TXN_CD", nullable = false, length = 6)
	private String intTxnCd;


    /**
	 * 资金流向
	 */
    @Column(name="TRAN_DIRECTION",nullable = false,length = 30)
	private String tranDirection;

	/**
	 * 校验对象 recv-收款方 pay-付款方
	 */
	@Column(name="CHECK_OBJ",nullable = false, length = 30)
	private String checkObj;

    /**
     * 中文描述
     */
    @Column(name="DESCRIP", length = 100)
    private String descrip;

	/**
	 * 创建人
	 */
	@Column(name="CREATE_OPER_ID")
	private String createOperId;
	
	/**
	 * 创建时间
	 */
	@Column(name="CREATED_TS")
	private Date createdTs;


	/**
	 * 最后修改人
	 */
	@Column(name="LAST_UPD_OPER_ID")
	private String lastUpdOperId;

	/**
	 * 最后修改时间
	 */
	@Column(name="LAST_UPD_TS")
	private Date lastUpdTs;

	/**
	 * 乐观锁版本号
	 */
	@Version
	@Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
	private Integer version;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAcctProd() {
		return acctProd;
	}

	public void setAcctProd(String acctProd) {
		this.acctProd = acctProd;
	}

	public String getCustType() {
		return custType;
	}

	public void setCustType(String custType) {
		this.custType = custType;
	}

	public String getIntTxnCd() {
		return intTxnCd;
	}

	public void setIntTxnCd(String intTxnCd) {
		this.intTxnCd = intTxnCd;
	}

	public String getTranDirection() {
		return tranDirection;
	}

	public void setTranDirection(String tranDirection) {
		this.tranDirection = tranDirection;
	}

	public String getCheckObj() {
		return checkObj;
	}

	public void setCheckObj(String checkObj) {
		this.checkObj = checkObj;
	}

    public String getDescrip() {
        return descrip;
    }

    public void setDescrip(String descrip) {
        this.descrip = descrip;
    }

	public String getCreateOperId() {
		return createOperId;
	}

	public void setCreateOperId(String createOperId) {
		this.createOperId = createOperId;
	}

	public Date getCreatedTs() {
		return createdTs;
	}

	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}

	public String getLastUpdOperId() {
		return lastUpdOperId;
	}

	public void setLastUpdOperId(String lastUpdOperId) {
		this.lastUpdOperId = lastUpdOperId;
	}

	public Date getLastUpdTs() {
		return lastUpdTs;
	}

	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}



}
